<template>
  <div>
    <div class="box">
      <div class="query">
        <div class="query_title">
          <div></div>
          <div class="query_title_right">
            <div></div>
            <div></div>
            <div class="el-icon-s-home conthome" @click="clickrouter"></div>
          </div>
        </div>
        <div class="query_cont">
          <div class="query_hader">
            <div class="query_hader">
              <div
                style="margin-top: 30px"
                v-for="(item, index) in items"
                :key="index"
                @click="onclick(item)"
              >
                {{ item.name }}
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      items: [
        { name: "连续性缺陷预警", path: "function_warning" },
        { name: "连续性密集性缺陷预警", path: "function_imgwarning" },
        { name: "实时看板", path: "real-time" },
      ],
    };
  },
  methods: {
    onclick(item) {
      this.$router.push(item.path);
    },
     clickrouter() {
      this.$router.back(-1);
    },
  },
};
</script>

<style  scoped>
.box {
  width: 100%;
}
.query {
  width: 95%;
  margin: 0 auto;
}

.query_cont {
  width: 95%;
   height: 90%;
  margin: 50px auto;
  /* border: 1px solid #000; */
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: url("../../assets/bg_3.jpg") no-repeat center;
  background-position: 50% 50%;
  background-size: 100% 100%;
  background-attachment: fixed;
}
.query_hader {
  width: 40%;
  /* border: 1px solid #ffffff; */
  margin-left: 50%;
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
}
.query_title {
  width: 100%;
  height: 40px;
  /* border:1px solid blue;  */
  display: flex;
  justify-content: space-between;
  background: ghostwhite;
  box-shadow: 0px, 0px, 0px, 1px ghostwhite;
}

.query_title_right {
  width: 20%;
  /* border:1px solid #000; */
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.conthome {
  font-size: 30px;
}
</style>